﻿@model IList<InnoWeb.CEND.Core.Model.Expert.ExpertInfo>
<div class="Experts ortala">
    <h1>@ViewBag.ExpertMotto</h1>
    @if (this.Request.Cookies.AllKeys.Contains("_culture"))
    {
        if (this.Request.Cookies["_culture"].Value == "tr-TR")
        {
        <p>@ViewBag.MottoExpertTR</p>    
        }
        else
        {
        <p>@ViewBag.MottoExpert</p>
        }
    }
    else
    {
        if (UICulture == "tr-TR")
        {
        <p>@ViewBag.MottoExpertTR</p>    
        }
        else
        {
        <p>@ViewBag.MottoExpert</p>
        }
    }
</div>
<div class="Experts_Yuz">
    <div class="Slider ortala">
        <img src="~/Images/Base/solOk3.png" class="SolOk" alt="SolOk" />
        <img src="~/Images/Base/sagOk3.png" class="SagOk" alt="SagOk" />
        <div class="SliderOrta">
            <ul class="kaydirak">
                @foreach (var item in Model)
                {
                    //string thumb = item.ImageUrl.Replace("Full", "Thumb");
                    <li class="Element">
                        <a href="@Url.Action("ExpertDetail", "Home", new { expertId = item.Id })">
                            <div class="Aciklama">
                                <img src="~/Images/Base/centik.png" class="centik" alt="centik" />
                                @item.FullName
                                <br />

                                @if (this.Request.Cookies.AllKeys.Contains("_culture"))
                                {
                                    if (this.Request.Cookies["_culture"].Value == "tr-TR")
                                    {
                                    @item.ShortDescriptionTR 
                                    }
                                    else
                                    {
                                    @item.ShortDescription
                                    }
                                }
                                else
                                {
                                    if (UICulture == "tr-TR")
                                    {
                                    @item.ShortDescriptionTR  
                                    }
                                    else
                                    {
                                    @item.ShortDescription
                                    }
                                }

                                
                            </div>
                            <div class="Resmi">
                                <img src="@Url.Content("~/Content/Images/Full/" + item.ImageUrl)" alt="resim" />
                            </div>
                        </a>
                    </li>
                }
            </ul>
        </div>
    </div>
</div>
